package com.crm.system.service.userForumManager;

import com.crm.common.model.DhPageInfo;
import com.crm.model.entity.userForumManager.UserForumReply;
import com.crm.model.vo.userForumManager.UserForumReplyVO;
import com.crm.model.vo.userForumManager.UserForumSonReplyVO;
import com.crm.model.vo.userForumManager.UserForumVO;

/**
 * @Author:chaifuyou
 * @Date: 2021/5/24 9:36
 */
public interface UserForumReplyService {

    /**
     * 添加评论
     * @param userForumReply
     */
    UserForumReplyVO addForumReply(UserForumReply userForumReply);

    /**
     * 查看评论
     * @param pageIndex
     * @param pageSize
     * @param sortName
     * @param sortOrder
     * @param userForumId
     * @return
     */
    DhPageInfo<UserForumReplyVO> selectForumReply(Integer pageIndex, Integer pageSize, String sortName, String sortOrder, String userForumId);

    /**
     * 查看子评论
     * @param pageIndex
     * @param pageSize
     * @param sortName
     * @param sortOrder
     * @param userForumReplyId
     * @return
     */
    DhPageInfo<UserForumReplyVO> selectForumSonReply(Integer pageIndex, Integer pageSize, String sortName, String sortOrder, String userForumReplyId,String userForumId);

    /**
     * 根据id获取评论信息
     * @param oneReplyId
     * @return
     */
    UserForumSonReplyVO selectForumReplyById(String oneReplyId);

    /**
     * 删除评论
     * @param userForumReplyId
     * @return
     */
    boolean delForumReply(String userForumReplyId);
}
